export const options = {
  commonly: [
    { label: '正常', value: '正常' },
    { label: '不正常', value: '不正常' },
    { label: '其他', value: '其他' }
  ],
  grow: [
    { label: '极低', value: '<P3' },
    { label: '低', value: 'P3-P10' },
    { label: '中下', value: 'P10-P20' },
    { label: '中', value: 'P20-P50' },
    { label: '中上', value: 'P50-P80' },
    { label: '高', value: 'P80-P97' },
    { label: '极高', value: '>P97' }
  ]
}

export const basicFormFields = (formValues = {}) => {
  return [
    {
      key: 'evaluateDate',
      label: '评测日期',
      type: 'date',
      formatFlag: true,
      initialValue: formValues.evaluateTime,
      rules: [{ required: true, message: '请选择' }]
    },
    {
      key: 'gestationalAge',
      label: '胎龄',
      initialValue: formValues.gestationalAge,
      type: 'number'
    },
    {
      key: 'deliveryWay',
      initialValue: formValues.deliveryWay,
      label: '娩出方式'
    }
  ]
}

export const formItems = [
  {
    title: '一般情况',
    list: [
      { label: '面色', key: 'complexion' },
      { label: '精神', key: 'spirit' },
      { label: '反应（哭声）', key: 'reaction' },
      { label: '体温', key: 'temperature' },
      { label: '脉搏', key: 'pulse' },
      { label: '呼吸', key: 'breathe' }
    ]
  },
  {
    title: '头面',
    list: [
      { label: '颅骨', key: 'skull' },
      { label: '毛发', key: 'hair' },
      { label: '眼睑', key: 'eyelid' },
      { label: '结膜', key: 'conjunctiva' },
      { label: '鼻', key: 'nose' },
      { label: '口腔（粘膜，牙）', key: 'oralCavity' }
    ]
  },
  {
    title: '胸部',
    list: [
      { label: '外型', key: 'chestShape' },
      { label: '心脏（心音，心律）', key: 'heart' },
      { label: '肺部（呼吸音）', key: 'lung' }
    ]
  },
  {
    title: '腹部',
    list: [
      { label: '外型', key: 'abdomenShape' },
      { label: '脐部', key: 'umbilicalRegion' },
      { label: '肝脏', key: 'liver' },
      { label: '脾脏', key: 'spleen' },
      { label: '包块及压痛', key: 'masses' }
    ]
  },
  {
    title: '生殖系统肛门',
    list: [
      { label: '外生殖器', key: 'genitals' },
      { label: '肛门', key: 'anus' }
    ]
  },
  {
    title: '骨骼',
    list: [
      { label: '脊柱', key: 'spine' },
      { label: '四肢', key: 'limbs' }
    ]
  },
  {
    title: '皮肤',
    list: [
      { label: '黄瘟', key: 'icterus' },
      { label: '皮疹（红臀）', key: 'rash' }
    ]
  },
  {
    title: '神经系统',
    list: [
      { label: '拥抱反射', key: 'moroReflex', type: 'input' },
      { label: '握持反射', key: 'graspReflex', type: 'input' },
      { label: '爬行反射', key: 'crawlingReflex', type: 'input' },
      { label: '踏步反射', key: 'steppingReflex', type: 'input' },
      { label: '其他', key: 'nervousSystemOther', type: 'input' }
    ]
  },
  {
    title: '体格发育',
    span: 8,
    list: [
      { label: '体重', key: 'physicalWeight', type: 'number', required: true, unit: 'kg' },
      { label: '身高', key: 'physicalHeight', type: 'number', required: true, unit: 'cm' },
      { label: '头围', key: 'physicalHeader', type: 'number', required: true, unit: 'cm' },
      { label: '胸围', key: 'physicalCircumference', type: 'number', unit: 'cm' },
      { label: '前囟', key: 'physicalBregma', type: 'number', unit: 'cm' }
    ]
  },
  {
    title: '生长发育评价（百分位法）',
    list: [
      { label: '身长/月（年）龄', key: 'growEvaluateHeightScale', options: 'grow', span: 24, disabled: true },
      { label: '体重/月（年）龄', key: 'growEvaluateWeightScale', options: 'grow', span: 24, disabled: true }
    ]
  },
  {
    title: '既往史',
    list: [
      { label: '疾病名称', key: 'previousHistorySick', type: 'input' }
    ]
  },
  {
    title: '家族史',
    list: [
      { label: '遗传性疾病（名称）', key: 'familyHistoryAllergicDisease', type: 'input' },
      { label: '过敏性疾病（名称）', key: 'familyHistoryHereditaryDisease', type: 'input' }
    ]
  },
  {
    title: '喂养史',
    list: [
      { label: '乳类每天喂乳次数', key: 'feedHistoryFeedingTimes', span: 24 },
      { label: '乳类每次喂乳量', key: 'feedHistoryFeedingQuantity', type: 'input' },
      { label: '辅食起始时间', key: 'feedHistoryComplementaryBetween', type: 'input' },
      { label: '辅食种类名称', key: 'feedHistoryComplementaryCategory', type: 'input' },
      { label: '辅食量', key: 'feedHistoryComplementaryQuantity', type: 'input' },
      { label: '辅食食物过敏', key: 'feedHistoryComplementaryHereditary', type: 'input' }
    ]
  },
  {
    title: '作息习惯',
    list: [
      { label: '睡眠起床时间', key: 'routineWakeUpTime', type: 'time' },
      { label: '睡眠入睡时间', key: 'routineSleepInertia', type: 'time' },
      { label: '白天睡眠时间', key: 'routineSleepTime', type: 'input', span: 24 },
      { label: '沐浴频率', key: 'routineBathFrequency', type: 'input' },
      { label: '沐浴时间', key: 'routineBathTime', type: 'input' },
      { label: '二便频率', key: 'routineDefecationFrequency', type: 'input' },
      { label: '二便性状', key: 'routineDefecationCharacter', type: 'input' },
      { label: '外出频率', key: 'routineOutFrequency', type: 'input' },
      { label: '外出时间', key: 'routineOutTime', type: 'input' }
    ]
  },
  {
    title: '父母关注的问题',
    slot: true,
    key: 'parentsAttentionQuestion'
  },
  {
    title: '保健指导',
    slot: true,
    key: 'healthGuide'
  }
]
